<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />

<!--[if lt IE 9]>
<script type="text/javascript" src="../Public/js/html5.js"></script>
<script type="text/javascript" src="../Public/js/respond.min.js"></script>
<script type="text/javascript" src="../Public/js/PIE_IE678.js"></script>
<![endif]-->
<css href="__PUBLIC__/Js/asyncbox/skins/default.css" />
 <js href="__PUBLIC__/Js/jquery-1.9.0.min.js,__PUBLIC__/Js/functions.js,__PUBLIC__/Js/jquery.form.js,__PUBLIC__/Js/asyncbox/asyncbox.js" />
<link type="text/css" rel="stylesheet" href="../Public/css/H-ui.css"/>
<link type="text/css" rel="stylesheet" href="../Public/css/H-ui.admin.css"/>
<link type="text/css" rel="stylesheet" href="../Public/font/font-awesome.min.css"/>
<!--[if IE 7]>
<link href="../Public/font/font-awesome-ie7.min.css" rel="stylesheet" type="text/css" />
<![endif]-->
<title>{$navAction}</title>
</head>
<body>
<nav class="Hui-breadcrumb"><i class="icon-home"></i> 首页 <span class="c-gray en">&gt;</span><a href="{:U('Admin/News/index')}">系统管理</a> <span class="c-gray en">&gt;</span> 清空缓存 <a class="btn btn-success radius r mr-20" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="icon-refresh"></i></a></nav>

<div class="pd-20">
  <div class="Huiform">
  
   <form>
                    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table table-border table-bordered table-bg mt-5 radius">
                        <thead>
                            <tr>
                                <td style="text-align: left;" colspan="4"><label><input name="" class="chooseAll" type="checkbox"/> 全选</label>&nbsp;&nbsp;&nbsp;&nbsp;  <button class="btn btn-danger radius submit">清除已选缓存</button></td>
                            </tr>
                        </thead>
                        <tbody>
                            <volist name="caches" id="cache" key="k">
                                <php> if($k%2==1) echo "<tr>";</php>
                                <td width="30" align="center"><input type="checkbox" name="cache[]" value="{$key}" /></td>
                                <td>{$cache.name}<br/> ({$cache.path})</td>
                                <php> if($k%2==0) echo "</tr>";</php>
                            </volist>
                            <php>if(count($caches)%2==1) echo '<td>&nbsp;</td><td>&nbsp;</td></tr>';</php>
                        </tbody>
                 
                    </table>
                    </form>
                  
  </div>
</div>

 <script type="text/javascript">
            $(function(){
                clickCheckbox();
                $(".submit").click(function(){
                    if($("tbody input[type='checkbox']:checked").size()==0){
                        popup.alert("请先选择要删除的缓存吧");
                        return false;
                    }
                    commonAjaxSubmit();
                    location.replace(location.href);
                    return false;
                });
                
            });
        </script>
</body>
</html>